package com.medical.data.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@AllArgsConstructor
@NoArgsConstructor
@Data
@ApiModel(value="通知", description="通知")
public class Notice implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("通知id")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("类型 FOLLOW_UP_NOTICE为随访通知,FORM_NOTICE为表单通知")
    private String type;


    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("是否已读,默认0未读,1为已读")
    private Integer hasRead;

    @ApiModelProperty("通知时间")
    private Date noticeTime;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty("医生id")
    private String doctorId;


}
